﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StockAnomalyDetector
{
    class Utils
    {
        public static TimeSpan GetSpan(int t1, int t2)
        {
            TimeSpan ts1 = new TimeSpan(t1 / 10000, t1 / 100 % 100, t1 % 100);
            TimeSpan ts2 = new TimeSpan(t2 / 10000, t2 / 100 % 100, t2 % 100);
            return ts2 - ts1;
        }
    }
}
